package com.example.shiro.utils;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;


public class UserUtils {

    public static UserAuthInfo getUser() {
        Subject subject = SecurityUtils.getSubject();
        return (UserAuthInfo) subject.getPrincipal();
    }

}
